
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" pageEncoding="utf-8"%>
<html>
<head>
<title>Test soap sending</title>
<link rel="stylesheet"
	href="<c:url value="/resources/css/soap/templateTest.css"/>" />

<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap.min.css"/>" />
<link rel="stylesheet"
	href="<c:url value="/resources/lib/bootstrap-3.3.5/css/bootstrap-theme.min.css"/>" />

<script src="<c:url value="/resources/lib/jquery-2.1.4.min.js" />"
	type="text/javascript"></script>
<script
	src="<c:url value="/resources/lib/bootstrap-3.3.5/js/bootstrap.min.js" />"
	type="text/javascript"></script>
<script src="<c:url value="/resources/js/util/codeArea.js" />"
	type="text/javascript"></script>
<!--  local js-->
<script type="text/javascript"
	src="<c:url value="/resources/js/soap/templateTest.js" />"></script>
</head>
<body>
	<header class="text-center">
		<h2>Test soap</h2>
	</header>

	<section class="mainSection container">
		<input type="hidden" value="${isInitial }" id="isInitial" />
		<c:choose>
			<c:when test="${isInitial}">

				<div class="form-group">
					<label for="endpoint">end point:</label> <input type="text"
						class="form-control" id="endpoint" name="endpoint" disabled
						value="${endpoint}">
				</div>

				<div class="form-group">
					<label for="userName">account:</label> <input type="text"
						class="form-control" id="userName" name="userName" disabled
						value="${userName}">
				</div>
				<div class="form-group">
					<label for="password">password:</label> <input type="text"
						class="form-control" id="password" name="password" disabled
						value="${password}">
				</div>
				<div class="form-group">
					<label for="passwordType">passwordType:</label> <input type="text"
						class="form-control" id="passwordType" name="passwordType"
						disabled value="${passwordType}">
				</div>

				<div id="selectDiv"  class="form-group"></div>


				<div id="templateDiv" class="form-group">
					<textarea style="width: 100%; height: 300px;" id="Result"></textarea>
				</div>
				<div id="submitDiv">
					<div class="form-group">
						<input id='sendSoap' type='button' class='btn btn-default'
							value='sendSoap' />
					</div>
				</div>
				<div id="responseDiv">
					<label for="response">response:</label>
					<textarea style="width: 100%; height: 200px;" id="response"></textarea>
				</div>
			</c:when>
			<c:otherwise>
				<div class="col-md-12">
					<div class="form-group">
						<label for="endpoint">end point:</label> <input type="text"
							class="form-control" id="endpoint" name="endpoint"
							value="${endpoint}">
					</div>
					<div class="form-group">
						<input type="button" value="connect" id="endpoint-btn"
							class="btn btn-default">
					</div>
					<h4 id="messageArea">server is not connect to endpoint, please
						connect...</h4>
				</div>
			</c:otherwise>
		</c:choose>

	</section>





</body>
</html>
